chore(rulesets): sync tracked specs with live branch and tag rules - #50
Merged
Conversation
check_rulesets.py validates the JSON shape but never compares it to the live ruleset, so the two drifted in both directions. branch-main.json claimed squash-only plus required_linear_history. The live rule is now merge-only with linear history dropped: merge commits are the only method that lands contributor commits with their original SHAs and signatures intact, which squash and rebase both destroy. tag-semver.json omitted the update rule the live tag ruleset carries, and the live ruleset was missing the required_signatures the spec declared. Both sides now agree: deletion, non_fast_forward, update, required_signatures. Signed-off-by: rldyourmnd <danil@nddev.it.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
check_rulesets.pyvalidates the JSON shape but never compares it to the live ruleset, so the two drifted in both directions.required_linear_history. Live is now merge-only with linear history dropped — merge commits are the only method that lands contributor commits with their original SHAs and signatures intact.updaterule the live tag ruleset carries; the live ruleset was missing therequired_signaturesthe spec declared. Both sides now agree.Type of change
Threat-model note
N/A — no workflow, token scope, or action reference touched.
Permissions diff
N/A — no job
permissions:change.Verification
python3 scripts/validate_all.py— 18/18 OK.Tier impact